#ifndef __UI_CONDITION_H__
#define __UI_CONDITION_H__

#include <QWidget>
#include <QLabel>
#include <QComboBox>
#include <QLineEdit>
#include <QRadioButton>
#include <QDateEdit>

#include "UIBase/QCWidget.h"
#include "../Global/Common.h"

class UICondition : public QCWidget
{
	Q_OBJECT
public:
	explicit UICondition(QWidget *parent = 0);
	~UICondition();

public:
	void setQCGeometry(int x, int y, int w, int h);
	void initContent();
	void getCondition(CaseCondition& condition);

	QSize arrange();

public slots:
void slotChangeDateStart(QDate date);
void slotChangeDateEnd(QDate date);
	
private:
	QLabel* m_pLabelName;
	QLineEdit* m_pEditName;
	QLabel* m_pLabelGender;
	QComboBox* m_pComboGender;
	QLabel* m_pLabelInstution;
	QLineEdit* m_pEditInstution;
	QLabel* m_pLabelResponseHospital;
	QLineEdit* m_pEditResponseHospital;
	QLabel* m_pLabelResponseDoctor;
	QLineEdit* m_pEditResponseDoctor;
	QLabel* m_pLabelDiagnoise;
	QLineEdit* m_pEditDiagnoise;
	QLabel* m_pLabelExamType;
	QComboBox* m_pComboExamType;

	QRadioButton* m_pRadio1Day;
	QRadioButton* m_pRadio3Day;
	QRadioButton* m_pRadio7Day;
	QRadioButton* m_pRadio30Day;
	QRadioButton* m_pRadioOtherDay;
	QDateEdit* m_pDateStart;
	QDateEdit* m_pDateEnd;
	QLabel* m_pLabelDateHint;
};

#endif //!__UI_CONDITION_H__
